home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
bcsrce2.zip
/
CATCHIT.BC
< prev
next >
Wrap
Text File
|
1990-10-21
|
1KB
|
55 lines
rem Hotkey to activity this TSR is Alt-B.
if %1 = disable goto disable_TSR
if %1 = enable goto enable_TSR
if %1 = unload goto unload_TSR
if %1 = popup goto popup_TSR
TSR_installed?
if errorlevel 1 goto installed
echo Installing screen capture program.
echo All screens toggled with Alt-B are redirected to CAUGHT.SCN.
echo.
echo SYNTAX--: CATCHIT [UNLOAD]/[ENABLE]/[DISABLE]/[POPUP]
TSR 48 8
save_screen
let %!w = 1
do_while not %!w == 26
locate %!w 1
let %!l = 0
read_screen %!l
echo %!l>>caught.scn
add %!w 1
end_while
restore_screen
beep
return
:installed
echo The screen capture TSR program has already been installed.
exit
:disable_TSR
GOSUB CHECK_TSR
TSR_disable
echo The screen capture TSR has been DISABLED.
exit
:enable_TSR
GOSUB CHECK_TSR
TSR_enable
echo The screen capture TSR has been ENABLED.
exit
:unload_TSR
GOSUB CHECK_TSR
TSR_unload
echo The screen capture TSR has been UNLOADED.
exit
:popup_TSR
GOSUB CHECK_TSR
TSR_popup
exit
:CHECK_TSR
TSR_installed?
if not errorlevel 1 goto N_A
RETURN
:N_A
echo The screen capture TSR hasn't been installed yet.
echo CATCHIT, by itself, installs the TSR.
exit